import request from '@/utils/request'

// 任务列表
export const taskList = (data) => {
  return request({
    method: 'POST',
    url: '/task/list',
    data
  })
}

// 模板下载
export const taskModDownload = (data) => {
  return request({
    method: 'POST',
    url: '/task/modDownload',
    responseType: 'blob',
    data
  })
}

// 保存
export const taskSave = (data) => {
  return request({
    method: 'POST',
    url: '/task/save',
    data
  })
}

// 文件下载
export const taskDownload = (data) => {
  return request({
    method: 'POST',
    url: '/task/download',
    responseType: 'blob',
    data
  })
}
